package com.dg.cuckoo.admin.action.integratedQuery;

import com.dg.cuckoo.admin.service.ProjectReportService;
import com.dg.cuckoo.core.BaseController;
import com.dg.cuckoo.core.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 综合查询-项目报表
 */
@RestController
@RequestMapping("/integratedQuery/projectReport")
public class ProjectReport extends BaseController {

    @Autowired
    private ProjectReportService service;

    @PostMapping("selectByid/{id}")
    public JsonResult<String> selectById(@PathVariable String id){
        String data = service.selectById(id);
        return new JsonResult<>(OK,data);
    }

}
